import {lazy} from "react" // 路由懒加载的
let routerlist = [
    {
        path:"/movie",
        element:lazy(()=>import("../views/movie"))
    },
    {
        path:"/video",
        element:lazy(()=>import("../views/Video")),
        children:[
            {
                path:"/video/children",
                element:lazy(()=>import("../views/videochildren"))
            },
            {
                from:"/video",
                to:"/video/children"
            }
        ]
    },
    {
        from:"/",
        to:"/movie"
    }
]
export default routerlist